import request from '../utils/request'

export function getUnreadList() {
    return request({
        url: '/uum-mq/api/v1/user/msg/unread',
        method: 'get'
    })
}

export function readMessage(msgId) {
    return request({
        url: '/uum-mq/api/v1/user/msg/read/'+msgId,
        method: 'post'
    })
}

export function clearAllMsg() {
    return request({
        url: '/uum-mq/api/v1/user/msg/readAll',
        method: 'delete'
    })
}
